<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>登录界面</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

    <!-- 可选的Bootstrap主题文件（一般不使用） -->
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    <!--[if lte IE 9]>
    <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
    <script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container">
    <h3 class="admin_link_bar">
        <jsp:include page="/jsp/common.jsp"/>
    </h3>

    <h1>信息:${msg}</h1>
    <sf:form class="form-horizontal col-sm-offset-3 " method="post" modelAttribute="user">
        <div class="form-group">
            <label for="userName" class="col-sm-2 control-label">用户名</label>

            <div class="col-sm-4">

                <sf:input type="text" class="form-control" id="userName" path="username"
                          placeholder="请输入名字"/><sf:errors path="username"/>
            </div>
        </div>

        <div class="form-group">
            <label for="userPassword" class="col-sm-2 control-label">密码</label>

            <div class="col-sm-4">

                <sf:input type="password" class="form-control" id="userPassword" path="password"
                          placeholder="请输入密码"/><sf:errors path="password"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-4 ">
                <button type="submit" class="btn btn-default btn-info  btn-block">登录</button>
            </div>
        </div>
    </sf:form>

</div>


</body>
</html>
